Page({
  data: {
  },
  /**
   * 打开本地视频
   */
  bindButtonTap: function() {
   var that = this
   //拍摄视频或从手机相册中选视频
   wx.chooseVideo({
    success: function(res) {
     console.log(res.tempFilePaths[0])
     that.setData({
      src: res.tempFilePaths[0]
     })
    }
   })
  },
  /**
   * 当发生错误时触发error事件，event.detail = {errMsg: 'something wrong'}
   */
  videoErrorCallback: function(e) {
   console.log('视频错误信息:')
   console.log(e.detail.errMsg)
  }
 })